//
//  vdTextureContainer.h
//  Techdemo
//
//  Created by Sidney Just on 07.02.10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "vdTexManager.h"
#import "vdTexNode.h"
#import "vdMacros.h"

/**
 * This class can load and hold more than one texture at a time. When you free a instance, all loaded textures will be freed too.
 @remark This class loads over the vdTexManager to avoid loading a texture multiple times
 **/
@interface vdTextureContainer : NSObject {
	@private
	vdTexNode **texture;
	unsigned int count;
}

/**
 * Adds an array of textures.
 @param texArray Array of the names of the textures
 **/
- (void)addTextures:(NSArray *)texArray;

/**
 * Adds one texture
 @param tex Name of the texture
 **/
- (void)addTexture:(NSString *)tex;

/**
 * Inits the container with an array of textures
 @param texArray Array of the names of the textures
 **/
- (id)initWithTextures:(NSArray *)texArray;

@end
